//
//  singerShowCell.m
//  LastTemp
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "singerShowCell.h"

@implementation singerShowCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.showImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.showImageView];
        [_showImageView release];
        
        self.smallShowImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.smallShowImageView];
        [_smallShowImageView release];
        
        self.singerNameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.singerNameLabel];
        [_singerNameLabel release];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.showImageView.frame = CGRectMake(10, 10, 100, 100);
    self.showImageView.layer.cornerRadius = 50;
    self.showImageView.layer.masksToBounds = YES;
    self.singerNameLabel.frame = CGRectMake(120, 40, 100, 40);
    self.smallShowImageView.frame = CGRectMake(self.contentView.frame.size.width - 40, 50, 20, 20);
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)dealloc
{
    [_showImageView release];
    [_singerNameLabel release];
    [_smallShowImageView release];
    [super dealloc];
}
@end
